package mt;

/**
 * 常量设置
 * 
 * @author Administrator
 */
public class Const {
    /**
     * 错误消息
     */
    public static final String MSG_ERR_1 = "{\"err\":1}";
    /**
     * 错误消息
     */
    public static final String MSG_ERR_2 = "{\"err\":2}";
    /**
     * 错误消息
     */
    public static final String MSG_ERR_3 = "{\"err\":3}";
    /**
     * 登录超时
     */
    public static final String MSG_ERR_9 = "{\"err\":9}";
    /**
     * 成功消息
     */
    public static final String MSG_SUCCESS = "{\"err\":0}";

    public static final String ERRMSG_KEY = "errmsg";
    /**
     * 状态：不可用
     */
    public static final int STATUS_NO = 0;
    /**
     * 状态：可用
     */
    public static final int STATUS_YES = 1;

    public static final String IM_KEY = "qd46yzrf48pof";// 替换成您的appkey
    public static final String IM_SECRET = "EfcosVb65j1rO";// 替换成匹配上面key的secret

    /** 支付宝相关配置信息------------------ start ---------------- */
    public static final String ALIPAY_PUBLIC_KEY_CFG = "alipay_public_key";
    public static final String ALIPAY_MSG_CHARSET_CFG = "charset";
    public static final String ALIPAY_PID_CFG = "pid";
    public static final String ALIPAY_SELLER_ID_CFG = "seller_id";
    public static final String MT_PRIVATE_KEY_CFG = "private_key";
    public static final String MT_PUBLIC_KEY_CFG = "public_key";
    public static final String ALIPAY_NOTIFY_URL_CFG = "notify_url";

    public static final String ALIPAY_MSG_SIGN = "sign";
    public static final String ALIPAY_MSG_SIGN_TYPE = "sign_type";
    public static final String ALIPAY_MSG_SIGN_TYPE_RSA = "RSA";

    public static final String ALIPAY_MSG_FROMUSERID = "FromUserId";
    public static final String ALIPAY_MSG_NOTIFY_ID = "notify_id";
    public static final String ALIPAY_MSG_NOTIFY_TYPE = "notify_type";

    public static final String ALIPAY_MSG_OUT_TRADE_NO = "out_trade_no";
    public static final String ALIPAY_MSG_TRADE_STATUS = "trade_status";

    /** 支付宝相关配置信息------------------ end ---------------- */

    /** WX相关配置信息------------------ start ---------------- */
    public static final String WXPAY_MSG_KEY_APP_ID = "app_id";
    public static final String WXPAY_MSG_KEY_wxpay_mct_id = "wxpay_mct_id";
    public static final String WXPAY_MSG_KEY_wxpay_api_key = "wxpay_api_key";
    public static final String WXPAY_MSG_KEY_preorder_url = "wxpay_unifiedorder_url";
    public static final String WXPAY_MSG_KEY_refund_url = "wxpay_refund_url";
    public static final String WXPAY_MSG_KEY_notify_url = "wxpay_notify_url";

    public static final String WEIXIN_APP_ID = "app_id";
    public static final String WEIXIN_APP_SECRET = "appsecret";
    public static final String WEIXIN_APP_DEV_TOKEN = "user_token";
    public static final String WEIXIN_RESP_ERRCODE_FIELD = "errcode";
    public static final String WEIXIN_RESP_ACCESS_TOKEN_FIELD = "access_token";
    public static final String WEIXIN_RESP_OPENID_FIELD = "openid";
    public static final String WEIXIN_RESP_UNIONID_FIELD = "unionid";
    public static final String WEIXIN_RESP_NICKNAME_FIELD = "nickname";
    public static final String WEIXIN_RESP_SEX_FIELD = "sex";
    public static final String WEIXIN_RESP_CITY_FIELD = "city";
    public static final String WEIXIN_RESP_PROVINCE_FIELD = "province";
    public static final String WEIXIN_RESP_COUNTRY_FIELD = "country";
    public static final String WEIXIN_RESP_LANGUAGE_FIELD = "language";
    public static final String WEIXIN_RESP_HEADIMGURL_FIELD = "headimgurl";
    public static final String WEIXIN_RESP_SUBSCRIBE_FIELD = "subscribe";
    public static final String WEIXIN_RESP_SUBSCRIBE_TIME_FIELD = "subscribe_time";

    public static final String WEIXIN_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appId}&secret={appsecret}";
    public static final String WEIXIN_USER_INFO_URL_TPL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={token}&openid={openId}&lang=zh_CN";

    /** WX相关配置信息------------------ end ---------------- */

    /** -------------- 常用的分隔符 start -------------------- */
    /** | 分隔符 */
    public static final String VERTICAL_SEPARATOR = "|";

    /** - 分隔符 */
    public static final String HORIZONTAL_SEPARATOR = "-";

    /** _ 分隔符 */
    public static final String UNDERLINE_SEPARATOR = "_";

    /** ～分隔符 */
    public static final String COMMA_SEPARATOR_TILDE = "~";

    /** - 调号分隔符 */
    public static final String COMMA_SEPARATOR = ",";

    /** . 句点分隔符 */
    public static final String DOT_SEPARATOR = ".";

    /** -------------- 常用的分隔符 end -------------------- */

}
